import {createStore} from 'vuex'
import createPersistedstate from 'vuex-persistedstate'
import account from "@/stores/account/index.js";

export default createStore({
    state: {},
    getters: {},
    mutations: {},
    actions: {},
    modules: {
        account
    },
    plugins: [
        createPersistedstate({
            //数据存储方式是sessionStore
            storage: sessionStorage,
            paths: ["account"]
        })
    ]
})
